package com.estun.backroundManagementService.modules.product.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 产品参数表
 * </p>
 *
 * @author machine
 * @since 2023-02-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("product_value")
@ApiModel(value="ProductValue对象", description="产品参数表")
public class ProductValue {


    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty(value = "产品ID")
    private Long productId;

    @ApiModelProperty(value = "参数所属工位")
    private String stationId;

    @ApiModelProperty(value = "控制项目ID")
    private Long productProcessStepId;

    @ApiModelProperty(value = "参数类型")
    private String type;

    @ApiModelProperty(value = "参数名称")
    private String name;

    @ApiModelProperty(value = "实际检测值")
    private Float value;

    @ApiModelProperty(value = "视觉图片地址")
    private String url;

    @ApiModelProperty(value = "状态 -1->不合格 1->合格")
    private Integer status;

    @ApiModelProperty(value = "检测时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "特殊参数的参数值数组JSON")
    private String data;

    @ApiModelProperty(value = "当前所在工位的工序序号")
    private Integer processIndex;


}
